<?php use_helper('I18N') ?>
<!--<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<?php echo include_http_metas() ?>
<?php echo include_metas() ?>
<?php echo include_title() ?>
<?php echo include_stylesheets() ?>
<?php echo include_javascripts() ?>
<link rel="shortcut icon" href="/favicon.ico" />
<style type="text/css">
.signupnow {

	color: #000000;
	text-decoration: none;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: bold;
	
}

</style>
</head>

<body background="/images/homebg.gif" leftMargin="0" topMargin="0">
<?php include("language.php") ?>
<?php if (!$sf_user->isAuthenticated() && !$_SESSION['url']=="Sign Up"): ?>
<br><br>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td colspan="2"><img src="/images/login_01.jpg" width="760" height="21"></td>
  </tr>
  <tr> 
    <td><img src="/images/login2_02.jpg" width="485" height="88"></td>
    <td width="274"><img src="/images/login2_03.jpg" width="275" height="88"></td>
  </tr>
  <tr> 
    <td width="486"><img src="/images/login2_04.jpg" width="485" height="28"></td>
    <td width="274"><img src="/images/login2_05.jpg" width="275" height="28"></td>
  </tr>
  <tr valign="top" bgcolor="#FFFFFF"> 
    <td colspan="2">
<table width="760" border="0" cellpadding="0" cellspacing="0">
        <tr> 
		<td width="340" height="69" valign="middle"> <div align="center"> <span class="greenbold">
		  <?php 				
				if ($_SESSION['signupsuccess']!=""){
				echo __($_SESSION['signupsuccess']);
				$_SESSION['signupsuccess']="";
				} else {?>
		  <?php echo __('Are you New? Sign Up now to use our SMS Manager!') ?>
		  <?php } ?>
		  </span></div></td>
          <td width="153" rowspan="2" valign="middle"><div align="center" class="style1">or</div></td>
          <td width="267" rowspan="2" valign="middle"><?php echo include_partial('user/login')?></td>
        </tr>
        <tr>
          <td valign="top" align="center"><div align="center"><a href="/customer/edit" class="signupnow" align='center' style="background-image:url(/images/signupnow_08.gif);width:151px;height:41px"><br><?php echo __('Sign Up Now!') ?></a></div></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr> 
    <td height="5" colspan="2"><img src="/images/login_06.jpg" width="760" height="5"></td>
  </tr>
  <tr valign="middle" bgcolor="#FFFFFF"> 
    <td colspan="2"><div align="center"><br>
      <span class="style1"><?php echo $info->getCompanyName();?></span><span class="style2"><br>
  <?php echo $info->getAddress();?>
  </span><br><br>
      <p class="style2">Tel : <?php echo $info->getTel();?> <br>
  Fax : <?php echo $info->getFax();?> </p><br>
        <p class="style2">Sales E-mail: <a href="mailto:<?php echo $info->getSalesEmail();?>"><?php echo $info->getSalesEmail();?><br>
        </a>Support E-mail: <a href="mailto:<?php echo $info->getSupportEmail();?>"><?php echo $info->getSupportEmail();?><br>
        </a>Website: <a href="http://<?php echo $info->getWebsiteUrl();?>"><?php echo $info->getWebsiteUrl();?></a><br>
    </p>
        </div></td>
  </tr>
   <tr valign="middle" bgcolor="#FFFFFF">
    <td colspan="2">&nbsp;</td>
  </tr>
  <tr valign="middle"><td height="20" colspan="2"background="images/login_08.jpg"> 
    <div align="center" class="style15"><?php echo __('ALL RIGHTS RESERVED') ?> 2006 </div></td>
  
</table>


<?php else: ?>
<table width="61%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td colspan="2" valign="top"><img src="/images/layout_01.jpg" width="780" height="30"></td>
  </tr>
  <tr>
  	<td valign="top" bgcolor="#FFFFFF" background="/images/layout_06.jpg" width=151>
  	<table cellspacing="0" cellpadding="0">
  	<?php $image_name='login2_02.jpg'; ?>
  	<tr>
    	<td valign="top"><img src="/images/<?php echo $image_name ?>" width="149" height="108"></td>
	</tr>
  	<tr>
		<td><?php if (!$_SESSION['url']=="Sign Up" || $_SESSION['superuser']=="1") { ?><?php include("navigation.php") ?><?php } ?></td>
    </tr>
  	</table>
	</td>



	<td width="630" valign="top" bgcolor="#FFFFFF">
  		<table width="605"  border="0" cellspacing="0" cellpadding="0">
      	<tr>
       	 <td valign="middle" background="/images/layout2_03.jpg"> 
			<table width="400" border="0" align="center" cellpadding="0" cellspacing="0">
          	<tr>
            	<td width="605" valign="top"><div align="center"><span class="style16"><strong><!--<marquee width=650 align=right direction=right behavior=scroll>--><?php if ($_SESSION['superuser']=="1" && $_SESSION['alert'] != "!") { echo $_SESSION['alert']; } else { echo __('Check out our latest promotion!'); } ?><!--</marquee>--></strong></span></div>
				</td>
          	</tr>
        	</table>          
			</td>
      	</tr>
      	<tr>
        	<td height="152" valign="top"><br>          
        	<table width="605" border="0" align="center" cellpadding="0" cellspacing="0">
            	<tr>
              	<td height="19" colspan="2" valign="middle">
			  	<table ID="content" width="605" border="0" cellpadding="0" cellspacing="0">
              		<tr>
			  			<td bgcolor="#FFFFFF"><?php echo $content; ?></td>
			  		</tr>
        	  	</table>
			  	</td>
      			</tr>
        	</table>
			</td>
     	 </tr>

    	</table>
		</td>
  	</tr>

  	<tr>
    	<td colspan="2"><span class="style2"><img src="/images/layout_11.jpg" width="780" height="19"></span></td>
  	</tr>
    <tr valign="top"><td height="54" colspan="2"background="/images/layout_12.jpg"><div align="center"><div align="center"><span class="style4"><?php echo __('ALL RIGHTS RESERVED') ?> 2006 <br>
      <span class="style2"><br>
</span><span class="style4"><?php echo $info->getCompanyName();?></span><?php echo $info->getAddress();?><br>
    Tel : <?php echo $info->getTel();?> Fax : <?php echo $info->getFax();?> Sales E-mail: <a href="mailto:<?php echo $info->getSalesEmail();?>"><?php echo $info->getSalesEmail();?></a> Support E-mail: <a href="mailto:<?php echo $info->getSupportEmail();?>"><?php echo $info->getSupportEmail();?></a> Website: <a href="http://<?php echo $info->getWebsiteUrl();?>"><?php echo $info->getWebsiteUrl();?></a></td>
  	</tr>



	</table>
	</td>
	</tr>
	</table>
</body>
</html>
<?php endif; ?>
<?php $_SESSION['url']=""; ?>
